#include <bits/stdc++.h>
#include <string>
#include <windows.h>
using namespace std;

string chineseTranslate[10] = {"零", "一", "二", "三", "四", "五", "六", "七", "八", "九"};
string unit_max[3] = {"", "万", "亿"};
string unit_min[4] = {"", "百", "千", "万"};

int data[3];

void readNumber(long long n, int unit)
{
  if (n == 0)
  {
    if (unit == 1&&data[2]!=0)
      cout << chineseTranslate[n];
    return;
  }
  int k, l = -1, m = 0;
  string str = "";
  while (n)
  {
    k = n % 10;
    // m=0&&k==0 k=0&&l=0
    if (!((m == 0 && k == 0) || (k == 0 && l == 0)))
    {
      str = chineseTranslate[k] + (k ? unit_min[m] : "") + str;
    }
    m++;
    l = k;
    n /= 10;
  }
  cout << str + unit_max[unit];
}

int main()
{
  SetConsoleOutputCP(CP_UTF8);
  int m, k = 0;
  long long number = 120059745; // 1,2045,9789
  while (number)
  {
    m = number % 10000;
    data[k++] = m;
    number /= 10000;
  }
  for (int i = 2; i >= 0; i--)
  {
    readNumber(data[i], i);
  }
  return 0;
}